package com.oxygen.design.bridge;

import com.oxygen.design.bridge.abstracts.Shape;
import com.oxygen.design.bridge.bean.Circle;
import com.oxygen.design.bridge.interfaces.impl.GreenCircle;
import com.oxygen.design.bridge.interfaces.impl.RedCircle;

/**
 * @author wangjie
 * @title: BridgePatternDemo
 * @description: TODO
 * @date 2022/3/12 10:44 PM
 **/
public class BridgePatternDemo {

    public static void main(String[] args) {
        Shape redCircle = new Circle(100, 100, 10, new RedCircle());
        Shape greenCircle = new Circle(100, 100, 10, new GreenCircle());

        redCircle.draw();
        greenCircle.draw();
    }

}
